The Week View component > FWeekView.setSelectedDate()

 

FWeekView.setSelectedDate()

Availability

Flash Player 6.

Usage

myWeekView_wkv.setSelectedDate (date)

Parameters

date A Date object which represents the date that the component should set as selected.

Returns


Nothing

 

Description

Specifies the date that should be selected within the component.

 

Example

The week_getSelectedDate.fla example file contains an example of using this method.

The following code sets the selected date to today.

function onWeekChange(view)
{
trace( "Selected Date: " + view.getSelectedDate() ); //will trace today's date
}

var dateObj = new Date( ); //today's date

myWeekView_wkv.setChangeHandler( "onWeekChange" );
myWeekView_wkv.setSelectedDate( dateObj );

See also

FWeekView.getSelectedDate()

FWeekView.getValue()